<style lang="less">
  .itemApp1App1{
    height: 32px;
    line-height: 32px;
  }
  .row-left{
    text-align: center;
  }
  .title-top{
    margin-bottom:10px;
    color: #1C86EE;
    font-size: 1rem;
    border-bottom: 1px solid orangered;
    font-size: 20px;
    color: coral;
  }
  .info-middleApp{
    height: 410px;
    background-color: #F8F8FF;
    padding-left: 70px;
    padding-right: 70px;
  }
  .ivu-steps-item {
    display: initial;
    position: relative;
    vertical-align: initial;
  }
  .step-item {
    float: left;
    margin-left: 0;
  }
  .head-img {
    height: 120px;
    width:100px;
    position:absolute;
    right:1px;
    top:10px;
  }
  .red-name{
    color: red
  }
</style>
<template>
  <div style="background-color:white">
    <div style="background-color:white">
      <Row class="title-top">
        <Col span="4" style="text-align: left;width:22%">城市低保救助申请登记</Col>
      </Row>
    </div>
    <div style="height:30px;">
      <Steps :current="0" style="margin-bottom:10px" size="small">
        <div @click="nextStep('0')" class="step-item">
          <Step title="家庭信息" content=""></Step>
        </div>
        <div @click="nextStep('1')" class="step-item">
          <Step title="家庭成员" content=""></Step>
        </div>
        <div @click="nextStep('2')" class="step-item">
          <Step title="基础收入" content=""></Step>
        </div>
        <div @click="nextStep('3')" class="step-item">
          <Step title="基础支出" content=""></Step>
        </div>
        <div @click="nextStep('4')" class="step-item">
          <Step title="赡抚扶养" content=""></Step>
        </div>
        <div @click="nextStep('5')" class="step-item">
          <Step title="基础财产" content=""></Step>
        </div>
        <div @click="nextStep('6')" class="step-item">
          <Step title="财产房产" content=""></Step>
        </div>
        <div @click="nextStep('7')" class="step-item">
          <Step title="工作单位" content=""></Step>
        </div>
        <div @click="nextStep('8')" class="step-item">
          <Step title="教育情况" content=""></Step>
        </div>
        <div @click="nextStep('9')" class="step-item">
          <Step title="家庭附件" content=""></Step>
        </div>
        <div @click="nextStep('10')" class="step-item">
          <Step title="提交信息" content=""></Step>
        </div>
      </Steps>
    </div>
    <div class="info-middleApp">
      <div style="width:55%;float:left">
        <Form ref="data" :model="data" :label-width="0" style="margin-top:10px" :rules="ruleInline">
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left">救助类型</Col>
              <Col span="7">
                <Select v-model="data.ssca0002" disabled>
                  <Option value="100">城市低保</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">申请人证件号码</Col>
              <Col span="7">
                <Input v-model="data.azcp0001" placeholder="" :disabled="see"></Input>
              </Col>
              <Col span="5" style="text-align: center" class="row-left red-name">申请人证件类型</Col>
              <Col span="6">
                <Select v-model="data.azcp0002" :disabled="see">
                  <Option :value="obj.key" v-for="obj in data1" v-bind:key="obj.key">{{obj.value}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">户籍特别行政区</Col>
              <Col span="6">
                <Select v-model="select1" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.id">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select2" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data3" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select3" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data4" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">户籍地详细地址</Col>
              <Col span="18">
                <Input v-model="data.azdf0500" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">常住地行政区划</Col>
              <Col span="6">
                <Select v-model="select4" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select5" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data5" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select6" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data6" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">常住地详细地址</Col>
              <Col span="18">
                <Input v-model="data.azdf0008" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="5" style="text-align: center" class="row-left red-name">所属地行政区划</Col>
              <Col span="6">
                <Select v-model="select7" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data2" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select8" :disabled="see">
                  <Option :value="obj.id" v-for="obj in data7" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
              <Col span="6">
                <Select v-model="select9" :disabled="see">
                  <Option :value="obj.code" v-for="obj in data8" v-bind:key="obj.key">{{obj.fullname}}</Option>
                </Select>
              </Col>
            </Row>
          </FormItem>
        </Form>
      </div>
      <div style="width:45%;float:left;position:relative;">
        <Form :label-width="0" style="margin-top:10px">
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left red-name">申请人姓名</Col>
              <Col span="8">
                <Input v-model="data.azcp0003" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">户籍地邮政编码</Col>
              <Col span="8">
                <Input v-model="data.azdf0009" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">宅电号码</Col>
              <Col span="8">
                <Input v-model="data.azdf0010" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">常住地邮政编码</Col>
              <Col span="8">
                <Input v-model="data.azdf0502" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="6" style="text-align: center" class="row-left">手机号码</Col>
              <Col span="8">
                <Input v-model="data.azdf0011" placeholder="" :disabled="see"></Input>
              </Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="24" style="text-align: center" class="row-left">&nbsp;</Col>
            </Row>
          </FormItem>
          <FormItem>
            <Row class="itemApp1">
              <Col span="24">
                <span style="color:red">*该选项为受理社区，选择后使用该社区账号登录低保系统进行审核！！！</span>
              </Col>
            </Row>
          </FormItem>
        </Form>
        <img :src="nophoto" alt="..." class="head-img">
      </div>
      <div style="height:40px;line-height:40px;float:left;margin-top:10px;margin-left:40%">
        <Button type="info" @click="save('data')" :disabled="order_state == '1' || order_state == '2' || order_state == '3'" :loading="loading" style="margin-right:5px">下一步></Button>
        <Button type="info" @click="nextPage()" v-if="order_state == '1' || order_state == '2' || order_state == '3'">下一页></Button>
      </div>
    </div>
  </div>
</template>
<script>
import { getCityDBAppraising, getCityDBAdministrativePlanning, getCityDBParentDivisions } from '@/api/subsistenceAlowances'
import { userinfo, iteminf, createOrder, updateOrder, getUuid } from '@/api/eventlist'
import nophoto from '@/assets/images/nophoto.jpeg'
export default {
  data () {
    return {
      itemData: {},
      id_url: '',
      loading: false,
      see: this.$route.params.see || false,
      operation_state: '',
      code: this.$route.params.code || '',
      itemid: this.$route.params.itemid || '11210101000000MZJD5212000330000',
      url: '',
      str: this.$route.params.serialNumber || '',
      idcardNumber: this.$route.params.idcardNumber || this.$route.params.cardno,
      errorTitle: '错误',
      select1: '',
      select2: '',
      select3: '',
      select4: '',
      select5: '',
      select6: '',
      select7: '',
      select8: '',
      select9: '',
      temp: {
        address: '',
        address1: '',
        address2: ''
      },
      data: {
        azcp0002: '',
        azcp0003: this.$route.params.name,
        azdf0006: '',
        azdf0010: '',
        azdf0011: '',
        azdf0500: '',
        azdf0501: '',
        azdf0007: '',
        azdf0008: '',
        ssca0002: '100',
        azcp0001: this.$route.params.idcardNumber || this.$route.params.cardno,
        ss11001Id: this.$route.params.ss11001Id || '',
        // ss11002Id: this.$route.params.ss11002Id || '',
        // ss17001Id: this.$route.params.ss17001Id || '',
        // ss17002Id: this.$route.params.ss17002Id || '',
        uuid: ''
      },
      ruleInline: {
        azcp0001: [
          { required: true, message: '请填写证件人号码', trigger: 'blur' }
        ],
        azcp0002: [
          { required: true, message: '请选择申请人证件类型', trigger: 'blur' }
        ],
        azcp0003: [
          { required: true, message: '请填写申请人姓名', trigger: 'blur' }
        ],
        azdf0006: [
          { required: true, message: '请选择户籍地', trigger: 'blur' }
        ],
        azdf0010: [
          { required: true, message: '请填写宅电号码', trigger: 'blur' }
        ],
        azdf0011: [
          { required: true, message: '请填写手机号码', trigger: 'blur' }
        ],
        azdf0500: [
          { required: true, message: '请填写户籍地详细地址', trigger: 'blur' }
        ],
        azdf0501: [
          { required: true, message: '请选择常住地', trigger: 'blur' }
        ],
        azdf0008: [
          { required: true, message: '请填写常住地详细地址', trigger: 'blur' }
        ],
        azdf0007: [
          { required: true, message: '请选择所属地', trigger: 'blur' }
        ],
        ssca0002: [
          { required: true, message: '请选择低保类型', trigger: 'blur' }
        ],
        uuid: [
          { required: true, message: '唯一标识不能为空', trigger: 'blur' }
        ],
        ss11001Id: [
          { required: true, message: 'ss11001Id不能为空', trigger: 'blur' }
        ]
      },
      data1: [],
      data2: [],
      data3: [],
      data4: [],
      data5: [],
      data6: [],
      data7: [],
      data8: [],
      nophoto,
      order_state: this.$route.params.order_state,
      form_params: {
        ss11001Data: {},
        ss11002Data: [],
        ss11003Data: [],
        ss11004Data: [],
        ss11005Data: [],
        ss11006Data: [],
        ss11007Data: [],
        ss11008Data: [],
        ss11009Data: [],
        ss11010Data: [],
        ss11012Data: [],
        ss12001Data: {}
      },
      uuid: '',
      next_params: {}
    }
  },
  methods: {
    nextStep (step) {
      this.$Message.warning('请点击下一步进行家庭维护页面')
    },
    nextPage () {
      this.$router.push({
        name: 'db_subsistenceapplication1',
        params: this.next_params
      })
    },
    save: function (name) {
      delete this.data.azcp0519
      this.data.azcp0001 = this.idcardNumber
      // this.data.azcp0519 = ''
      this.form_params.ss11001Data = this.data
      this.form_params.ss11001Data.ss11001Id = this.code
      // this.form_params.ss11002Data = []
      // this.form_params.ss11012Data = []
      if (this.data.azcp0001 === '' || this.data.azcp0001 === undefined) {
        const content = '<p>请输入申请人证件号码</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azcp0002 === '' || this.data.azcp0002 === undefined) {
        const content = '<p>请选择申请人证件类型</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0006 === '' || this.data.azdf0006 === undefined) {
        const content = '<p>请选择户籍特别行政区</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0500 === '' || this.data.azdf0500 === undefined) {
        const content = '<p>请填写户籍地详细地址</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0501 === '' || this.data.azdf0501 === undefined) {
        const content = '<p>请选择常住地行政区划</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0008 === '' || this.data.azdf0008 === undefined) {
        const content = '<p>请填写常住地详细地址</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azdf0007 === '' || this.data.azdf0007 === undefined) {
        const content = '<p>请选择所属地行政区划</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      if (this.data.azcp0003 === '' || this.data.azcp0003 === undefined) {
        const content = '<p>请填写申请人姓名</p>'
        this.$Modal.error({
          title: this.errorTitle,
          content: content
        })
        return
      }
      this.loading = true
      if (this.$route.params.code !== '' && this.$route.params.code !== undefined) {
        // this.form_params.ss11010Data.azcp0002 = this.form_params.ss11010Data.azcp0002
        let param = {
          item_id: this.$route.params.itemid,
          cardno: this.$route.params.cardno,
          form_params: this.form_params,
          code: this.$route.params.code
        }
        this.info = {
          cardno: this.$route.params.cardno,
          idcardNumber: this.$route.params.cardno,
          itemid: this.$route.params.itemid,
          code: this.$route.params.code,
          serialNumber: this.str,
          uuid: this.uuid
        }
        console.log(this.info, '事项id')
        updateOrder(param).then(res => {
          if (res.data.data) {
            console.log('第一步数据保存成功', res)
            this.$Notice.success({ title: '保存成功', desc: '业务编号：' + param.code })
            this.$router.push({
              name: 'db_subsistenceapplication1',
              params: this.info
            })
          } else {
            this.$Notice.error({ title: '保存失败', desc: res.data.errmsg })
          }
        })
      } else {
        console.log('新建')
        let param = {
          item_id: this.itemid,
          cardno: this.idcardNumber,
          name: this.personinfo.name || '马超群',
          mobile: this.personinfo.mobile
        }
        createOrder(param).then(res => {
          if (res.data.data) {
            this.$Notice.success({ title: '保存成功', desc: '请完成其他信息' })
            this.info = {
              cardno: this.idcardNumber,
              idcardNumber: this.idcardNumber,
              itemid: this.itemid,
              code: res.data.data,
              serialNumber: this.str,
              uuid: this.uuid
            }
            console.log(this.info)
            this.form_params.ss11001Data.ss11001Id = res.data.data
            // this.form_params.ss11010Data.azcp0002 = this.data.type
            let param = {
              item_id: this.itemid,
              cardno: this.idcardNumber,
              form_params: this.form_params,
              code: this.info.code
            }
            updateOrder(param).then(res => {
              if (res.data.data) {
                console.log('第一步数据保存成功', res)
                this.$Notice.success({ title: '保存成功', desc: '业务编号：' + param.code })
                this.$router.push({
                  name: 'db_subsistenceapplication1',
                  params: this.info
                })
              } else {
                this.$Notice.error({ title: '保存失败', desc: res.data.errmsg })
              }
            })
          } else {
            this.$Notice.error({ title: '保存失败', desc: res.data.errmsg })
            this.loading = false
          }
        })
      }
    },
    getuserinfo (cardno) {
      userinfo(cardno).then(res => {
        if (res.data.data) {
          this.personinfo = res.data.data
          this.data.azcp0003 = this.personinfo.name
          this.nophoto = res.data.data.photo
          console.log(this.data.azcp0003, '姓名')
        } else {
          this.$Notice.error({ title: '查不到人员信息' })
        }
      })
    },
    getAppraiseInfo () { // 获取字典数据
      console.log('!!!!!')
      var param = {
        'idcardNumber': this.idcardNumber,
        'dictsCode': 'ss11001',
        'serialNumber': this.str
      }
      getCityDBAppraising(param).then(res => {
        this.data1 = res.data.data.data.CertificateTypeDict
      })
    },
    getAddress () { // 获取区数据
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'serialNumber': this.str
      }
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data2 = res.data.data.data.divisions
        console.log(this.data2, 'data2')
      })
    }
  },
  watch: {
    select1 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      // 获取街道信息
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data3 = res.data.data.data.divisions
        console.log(res, '调用街道接口返回来的数据')
        console.log(this.data3)
      })
    },
    select2 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      // 社区信息
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data4 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data4)
      })
    },
    select3 (val) {
      this.data.azdf0006 = val
    },
    select4 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data5 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data5)
      })
    },
    select5 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data6 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data6)
      })
    },
    select6 (val) {
      this.data.azdf0501 = val
    },
    select7 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data7 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data7)
      })
    },
    select8 (val) {
      var param1 = {
        'idcardNumber': this.idcardNumber,
        'pid': val,
        'serialNumber': this.str
      }
      getCityDBAdministrativePlanning(param1).then(res => {
        this.data8 = res.data.data.data.divisions
        console.log(res, '调用接口返回来的数据')
        console.log(this.data8)
      })
    },
    select9 (val) {
      this.data.azdf0007 = val
    }
  },
  mounted () {
    this.order_state = this.$route.params.order_state
    // 判断是否有信息
    let timestamp = new Date().getTime().toString()
    var str1 = Math.ceil(Math.random() * 10)
    var str2 = Math.ceil(Math.random() * 10)
    this.str = str1 + timestamp + str2
    this.getuserinfo(this.idcardNumber)
    this.getAppraiseInfo()
    this.getAddress()
    let param2 = {
      'cardno': this.$route.params.cardno,
      'id': this.$route.params.itemid,
      'code': this.$route.params.code,
      'params': '1'
    }
    iteminf(param2).then(res => {
      if (res.data.errcode === 0 && res.data.data) {
        if (res.data.data.form_params) {
          console.log('编辑')
          console.log(this.uuid, 'uuid')
          this.data = JSON.parse(res.data.data.form_params).ss11001Data
          this.uuid = this.data.uuid
          // this.uuid = getUuid() // 临时
          // this.data.uuid = this.uuid // 临时
          this.data.azcp0001 = this.$route.params.idcardNumber || this.$route.params.cardno
          this.getuserinfo(param2.cardno)
          this.form_params.ss11001Data = this.data
        } else {
          console.log('新创建')
          this.uuid = getUuid()
          this.data.uuid = this.uuid
          this.form_params.ss11001Data = this.data
        }
        if (JSON.parse(res.data.data.form_params).ss11002Data) {
          this.form_params.ss11002Data = JSON.parse(res.data.data.form_params).ss11002Data
        }
        if (JSON.parse(res.data.data.form_params).ss11003Data) {
          this.form_params.ss11003Data = JSON.parse(res.data.data.form_params).ss11003Data
        }
        if (JSON.parse(res.data.data.form_params).ss11004Data) {
          this.form_params.ss11004Data = JSON.parse(res.data.data.form_params).ss11004Data
        }
        if (JSON.parse(res.data.data.form_params).ss11005Data) {
          this.form_params.ss11005Data = JSON.parse(res.data.data.form_params).ss11005Data
        }
        if (JSON.parse(res.data.data.form_params).ss11006Data) {
          this.form_params.ss11006Data = JSON.parse(res.data.data.form_params).ss11006Data
        }
        if (JSON.parse(res.data.data.form_params).ss11007Data) {
          this.form_params.ss11007Data = JSON.parse(res.data.data.form_params).ss11007Data
        }
        if (JSON.parse(res.data.data.form_params).ss11008Data) {
          this.form_params.ss11008Data = JSON.parse(res.data.data.form_params).ss11008Data
        }
        if (JSON.parse(res.data.data.form_params).ss11009Data) {
          this.form_params.ss11009Data = JSON.parse(res.data.data.form_params).ss11009Data
        }
        if (JSON.parse(res.data.data.form_params).ss11010Data) {
          this.form_params.ss11010Data = JSON.parse(res.data.data.form_params).ss11010Data
        }
        if (JSON.parse(res.data.data.form_params).ss11012Data) {
          this.form_params.ss11012Data = JSON.parse(res.data.data.form_params).ss11012Data
        }
        if (JSON.parse(res.data.data.form_params).ss12001Data) {
          this.form_params.ss12001Data = JSON.parse(res.data.data.form_params).ss12001Data
        }
        var param3 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0006,
          'serialNumber': this.str
        }
        getCityDBParentDivisions(param3).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select1 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select2 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select3 = arr3[k].code
            }
          }
        })
        var param4 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0501,
          'serialNumber': this.str
        }
        getCityDBParentDivisions(param4).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select4 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select5 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select6 = arr3[k].code
            }
          }
        })
        var param5 = {
          'idcardNumber': this.idcardNumber,
          'backCode': this.data.azdf0007,
          'serialNumber': this.str
        }
        getCityDBParentDivisions(param5).then(res => {
          var arr1 = res.data.data.data.xq
          for (var i = 0; i < arr1.length; i++) {
            if (arr1[i].selected === 'selected') {
              this.select7 = arr1[i].id
            }
          }
          var arr2 = res.data.data.data.xzjd
          for (var j = 0; j < arr2.length; j++) {
            if (arr2[j].selected === 'selected') {
              this.select8 = arr2[j].id
            }
          }
          var arr3 = res.data.data.data.sqc
          for (var k = 0; k < arr3.length; k++) {
            if (arr3[k].selected === 'selected') {
              this.select9 = arr3[k].code
            }
          }
        })
      }
    })
    this.next_params = {
      serialNumber: this.str,
      idcardNumber: this.idcardNumber,
      cardno: this.idcardNumber,
      code: this.$route.params.code,
      see: this.see,
      itemid: this.itemid,
      order_state: this.order_state,
      uuid: this.uuid
    }
  }
}
</script>
